package com.isoft.hospital.controller;

import com.isoft.hospital.common.ResponseData;
import com.isoft.hospital.service.Jiuzhen1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Jiuzhen1Controller {
    @Autowired
    private Jiuzhen1Service service;
    @GetMapping("/selectAllJ")
    public ResponseData seleAll(){
        return service.selectAll();
    }
    @GetMapping("/queryBypid")
    public ResponseData queryByPid(int p_id){
        return service.queryByPid(p_id);
    }
}
